package com.bestcem.xm.txtanls.entity.mysql;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * 项目字段信息
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/27 14:27
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("ds_txtanls_project_field")
public class ProjectFieldEntity {

    /**
     * 主键id
     */
    @TableId("project_field_id")
    @TableField(jdbcType = JdbcType.BINARY)
    private String projectFieldId;
    /**
     * 项目id
     */
    @TableField(value = "project_id", jdbcType = JdbcType.BINARY)
    private String projectId;
    /**
     * 字段id
     */
    @TableField(value = "field_id", jdbcType = JdbcType.BINARY)
    private String fieldId;
    /**
     * 训练字段名称
     */
    @TableField(value = "field_name")
    private String fieldName;
    /**
     * 0 时间字段类型 1 文本字段类型
     */
    @TableField(value = "type", jdbcType = JdbcType.TINYINT)
    private Integer type;
    /**
     * 建用户id
     */
    @TableField(value = "creator_id", jdbcType = JdbcType.BINARY)
    private String creatorId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 新用户id
     */
    @TableField(value = "operator_id", jdbcType = JdbcType.BINARY)
    private String operatorId;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否是示例数据
     */
    @TableField(value = "sample")
    private Boolean sample;

    /**
     * 训练字段在clickhouse中的偏移量
     */
    @TableField(value = "offset")
    private Integer offset;
}
